import { PropsWithChildren } from 'react'
import Taro, { useLaunch } from '@tarojs/taro'

import './app.scss'

function App({ children }: PropsWithChildren<any>) {

  useLaunch(async () => {
    Taro.cloud.init( {
      env: 'prod-0g6virbea3062996',
    });
    
    console.log('App launched.')
  })

  // children 是将要会渲染的页面
  return children
}

export default App
